package com.jishuo.nontax.bean.vo;

import com.jishuo.nontax.bean.message.SetCantonDTO;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 行政区划信息
 * 
 * @author hlp
 * @email 1459875748@qq.com
 * @date 2023-02-02 10:13:13
 */
@Data
public class CantonVO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//唯一标识号
	private Long cantonid;
	//区划编码
	private String cantoncode;
	//区划名称
	private String cantonname;
	//是否可用
	private Integer isenable;
	//操作时间
	private String writetime;
	//级次
	private String cantonlevel;
	//父级编码
	private String parentcode;
    private String state;

    private List<CantonVO> charer;

    public CantonVO(){}

    public CantonVO(SetCantonDTO bean){
        if(bean.getCantonid()!=null){
            this.cantonid = Long.valueOf(bean.getCantonid());
        }
        this.cantoncode = bean.getCantoncode();
        this.cantonname = bean.getCantonname();
        this.state = bean.getState();
    }

}
